<?php
session_start();
error_reporting(E_ALL);
include_once 'include_classes.php';

//Connection bdd
$db=new DbConnection();
$db->OpenConnection();

$id=$_GET['id'];
$asso=$_GET['nom'];
date_default_timezone_set('Europe/Berlin');
        $date=date("Y-m-d");
        
        $sql='UPDATE objet SET dateHS = \''.$date.'\' WHERE id='.$id.';';
        
        $query= new DbQuery($db,$sql);
        $query->SendQuery();
        

    //Redirection
    echo '<meta http-equiv="Refresh" content="0;url=asso.php?nom='.$asso.'">';


?>
